package com.guigu.youxuan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.guigu.youxuan.common.utils.PageUtils;
import com.guigu.youxuan.pojo.GoodsInfo;
import com.guigu.youxuan.pojo.Warehouse;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
public interface IWarehouseService extends IService<Warehouse> {
    /**
     * 分页查询所有仓库信息
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<Warehouse> WarehouseListPage(int pageNo, int pageSize);
    /**
     * 查询未复核的仓库信息
     * @param currentPage
     * @param pageSize
     * @return
     */
    PageInfo<Warehouse> WarehouseFuhePage(int currentPage, int pageSize);
    /**
     * 仓库禁用/启用
     * @param warehouse
     * @return
     */
    void switchStatus(Warehouse warehouse);
    /**
     * 根据仓库表id查询对应的仓库信息
     * @param id
     * @return
     */
    Warehouse getByListId(int id);


    List<Warehouse> queryWarehouse();
}
